package com.vehicle.contract.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.vehicle.common.core.annotation.Excel;
import com.vehicle.common.core.web.domain.BaseEntity;

/**
 * 合同信息对象 contract
 *
 * @author Mr.阚
 * @date 2025-03-28
 */
public class Contract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 合同唯一标识 */
    private Long id;

    /** 关联的车辆 VIN */
    @Excel(name = "关联的车辆 VIN")
    private String vehicleVin;

    /** 合同编号 */
    @Excel(name = "合同编号")
    private String contractNumber;

    /** 签约日期，默认当前时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签约日期，默认当前时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date signDate;

    /** 合同状态（如已签 "signed"、草稿 "draft"） */
    @Excel(name = "合同状态")
    private String status;

    /** 合同甲方 */
    @Excel(name = "合同甲方")
    private String partya;

    /** 合同乙方 */
    @Excel(name = "合同乙方")
    private String partyb;
    @Excel(name = "车辆名称")
    private String carName;

    public void setId(Long id)
    {
        this.id = id;
    }

    public String getCarName() {
        return carName;
    }

    public void setCarName(String carName) {
        this.carName = carName;
    }

    public Long getId()
    {
        return id;
    }
    public void setVehicleVin(String vehicleVin)
    {
        this.vehicleVin = vehicleVin;
    }

    public String getVehicleVin()
    {
        return vehicleVin;
    }
    public void setContractNumber(String contractNumber)
    {
        this.contractNumber = contractNumber;
    }

    public String getContractNumber()
    {
        return contractNumber;
    }
    public void setSignDate(Date signDate)
    {
        this.signDate = signDate;
    }

    public Date getSignDate()
    {
        return signDate;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setPartya(String partya)
    {
        this.partya = partya;
    }

    public String getPartya()
    {
        return partya;
    }
    public void setPartyb(String partyb)
    {
        this.partyb = partyb;
    }

    public String getPartyb()
    {
        return partyb;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("vehicleVin", getVehicleVin())
            .append("contractNumber", getContractNumber())
            .append("signDate", getSignDate())
            .append("status", getStatus())
            .append("partya", getPartya())
            .append("partyb", getPartyb())
                .append("carName", getCarName())
            .toString();
    }
}
